package photosalvage.entity;

public class UserDto {
	public final Long id;
	public final String email;
	public final String name;
	public final String password;
	public final boolean administrator;
	public UserDto(String email, String name, String password, boolean administrator) {
		this(email, name, password, administrator, null);
	}
	public UserDto(String email, String name, String password, boolean administrator, Long id) {
		this.email = email;
		this.name = name;
		this.password = password;
		this.administrator = administrator;
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getEmail() {
		return email;
	}
	public String getName() {
		return name;
	}
	public String getPassword() {
		return password;
	}
	public boolean isAdministrator() {
		return administrator;
	}
}
